export const pieSetOption = (data:any) => {
  return {
    backgroundColor:'rgba(34, 54, 81,.5)',
    tooltip: {
      trigger: 'item',
    },
    // legend: {
    //   top: '5%',
    //   left: 'center',
      // color:'#ccc',
    // },
    series: [
      {
        // name: 'Access From',
        type: 'pie',
        radius: ['40%', '70%'],
        // avoidLabelOverlap: true,
        itemStyle: {
          borderRadius: 5,
          // borderColor: '#fff',
          borderWidth: 2,
        },
        label: {
          color:'#fff',
          show: true,
          alignTo: 'none',
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '15',
            // fontWeight: 'bold',
           
          },
        },
        labelLine: {
          show: true,
          lineStyle: {
            width:3
          }
        },
        data:data,
      },
    ],
  }
}
